package fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.sam.ui.base.fragment.BaseFragment;

import base.WonderBaseFragment;
import wonder.com.basketballdemo.R;

/**
 * Created by Administrator on 2016/7/13.
 */
public class MeFragment extends BaseFragment {
    public static MeFragment self;
    public synchronized static MeFragment getInstanse(){
        if (self==null)self=new MeFragment();
        return self;

    }
    private TextView tv;
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       setContentView(R.layout.me_fragment);
    }

    @Override
    protected void findView() {
        tv= (TextView) findViewById(R.id.tv);
    }

    @Override
    protected void initView() {
tv.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        Toast.makeText(getActivity(),tv.getText(),Toast.LENGTH_LONG).show();
    }
});
    }
}
